function showpopup() {
	 
                $("#sign_up").lightbox_me({
					centered:true, 
					onLoad: function() {
					$("#sign_up").find("input:first").focus();
				} 
		 
					 
				 
				});
}

function submitpopupemail(email)
{
		 var dataString ="email="+email;
	 var mainpath = location.href;
	          if( mainpath.indexOf( "index.php" ) !== -1 )
	           {
			  mainpath=mainpath.substr(0, strrpos(mainpath,"/index.php")); 
	             } 

				  $.ajax({
				  type:'POST',
				  url: mainpath+"index.php/login/savepopupemail",
				  data:dataString,

           success: function(result){
      	$("#sign_up").hide(); 
			//closeLightbox(); 
		  }
	 
	        });
}